perf(supervisor-network): cache proposal coverage by policy snapshot - #3201
Conversation
Evaluate proposal coverage once per observed installed policy snapshot while preserving replacement and deadline behavior. Signed-off-by: Shiju <shiju@nvidia.com>
|
Label |
PR Review StatusThis focused change implements issue #3092's policy-advisor snapshot evaluation requirement. The initial code review found no blocking defects; the internal performance change does not alter a direct user-facing contract, so Fern documentation is not needed. E2E dispatch is now being prepared for the supervisor network-policy path. Blocking findings:
Carried findings:
Non-blocking suggestions:
Gator metadata
|
Monitoring CompleteMonitoring is complete because this PR has merged. Final status: Gator reached I removed the active |
Summary
Evaluate a proposed rule against each observed installed policy snapshot once instead of repeating the full coverage scan on every 200 ms timer tick. A newly installed snapshot, including a byte-identical replacement, still receives one fresh evaluation.
Related Issue
Part of #3092
Changes
Arcsnapshot so waiters can identify installations without cloning the complete policy.Testing
mise run pre-commitpassesChecklist